inspector: Stop raising and lowering windows
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Feb 2020 17:55:13 +0000 (12:55 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Mar 2020 23:35:56 +0000 (19:35 -0400)
We should always be composited, so this should not
matter in practice.

gtk/inspector/inspect-button.c

index 57076dbbd0fc46782adc816908297f4bd702cb76..6a885550521271929f35ca1cad434d7d5d125f26 100644 (file)
@@ -99,7 +99,9 @@ on_inspect_widget (GtkInspectorWindow *iw,
 {
   GtkWidget *widget;
 
+#if 0
   gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (iw)));
+#endif
 
   clear_flash (iw);
 
@@ -122,8 +124,10 @@ reemphasize_window (GtkWidget *window)
       gtk_widget_set_opacity (window, 1.0);
       gtk_window_set_extra_input_region (GTK_WINDOW (iw), NULL);
     }
+#if 0
   else
     gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (window)));
+#endif
 }
 
 static gboolean handle_event (GtkInspectorWindow *iw, GdkEvent *event);
@@ -206,8 +210,10 @@ gtk_inspector_on_inspect (GtkWidget          *button,
       gtk_window_set_extra_input_region (GTK_WINDOW (iw), region);
       cairo_region_destroy (region);
     }
+#if 0
   else
     gdk_surface_lower (gtk_native_get_surface (GTK_NATIVE (iw)));
+#endif
 
   g_signal_connect (iw, "event", G_CALLBACK (handle_event), NULL);
 }